<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>dom操作</title>
    <script>
        function showMe() {
            alert("it is me...")
        }

        // 调用执行函数
        /*showMe()*/
    </script>
</head>
<body>

<form>
    <input type="button" value="开始" onclick="showMe();">
    <a href="javascript:showMe()">点击我</a>
    <a href="https://wwww.baidu.com" onclick="return confirm('你确认点击么？');">确认点击之后要跳转么？</a>

</form>
</body>
</html>